<script setup>
import { ref, nextTick } from "vue";
const count = ref(0);

const addClick = async () => {
  count.value++;
  console.log(document.getElementById("id").textContent, 111);
  await nextTick();
  console.log(document.getElementById("id").textContent, 222);
};
</script>

<template>
  <div @click="addClick()" id="id">当前的计数：{{ count }}</div>
</template>

<style scoped></style>
